<template>
  <div class="content">
    <input type="text" v-model="obj.name"> 
  </div>
</template>

<script setup lang="ts">
import { reactive, watchEffect } from 'vue'

let obj = reactive({
    name:'zs'
  });

watchEffect(() => {
  console.log('name:',obj.name)

  setTimeout(() => {
    obj.name = '33333333333'
  }, 2000);
})
</script>
<style scoped>
  .content {
    height: 120px;
  }
</style>
